package com.ww.demo.core.exception;

/**
 * @author liuqingwang
 * @date 2021/10/25 22:27
 */
public abstract class BaseException extends RuntimeException {

    private int errorCode;
    private String errorMessage;

    public BaseException(int errorCode, String errorMessage) {
        super();
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    @Override
    public String getMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

}
